package itdep.domain.education;

import itdep.domain.IisEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author Ivan Khalopik
 * @version $Revision: 9 $ $Date: 2010-06-15 22:29:57 +0000 (Tue, 15 Jun 2010) $
 */
@Entity
@Table(name = "EDUCATION_YEAR")
public class EducationYear extends IisEntity {

	@Column(name = "ENTRY_YEAR", nullable = false)
	private Date year;

	@Column(name = "CURRENT_SEMESTER", nullable = false)
	private int currentSemester;

	public Date getYear() {
		return year;
	}

	public void setYear(Date year) {
		this.year = year;
	}

	public int getCurrentSemester() {
		return currentSemester;
	}

	public void setCurrentSemester(int currentSemester) {
		this.currentSemester = currentSemester;
	}
}
